home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / develop™ Technical Journal / develop Issue 28 code / CurveLayout.sit / CurveLayout / AccurateShapesLibrary / ComputeLength.h < prev    next >
MacBinary  |  1996-09-20  |  1.3 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, Fri Sep 20 18:15:00 1996, modified Fri Sep 20 18:15:00 1996, creator 'CWIE', type ASCII, 620 bytes "ComputeLength.h" , at 0x2ec 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 43 6f 6d 70 75 74 | 65 4c 65 6e 67 74 68 2e |..Comput|eLength.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 02 6c 00 | 00 01 9a ae 68 c7 e4 ae |......l.|....h...|
|00000060| 68 c7 e4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 34 c7 00 00 |........|....4...|
|00000080| 2f 2f 20 46 69 6c 65 3a | 09 43 6f 6d 70 75 74 65 |// File:|.Compute|
|00000090| 4c 65 6e 67 74 68 2e 68 | 0d 0d 0d 23 69 6e 63 6c |Length.h|...#incl|
|000000a0| 75 64 65 20 3c 54 79 70 | 65 73 2e 68 3e 0d 23 69 |ude <Typ|es.h>.#i|
|000000b0| 6e 63 6c 75 64 65 20 3c | 47 58 4d 61 74 68 2e 68 |nclude <|GXMath.h|
|000000c0| 3e 0d 23 69 6e 63 6c 75 | 64 65 20 3c 47 58 54 79 |>.#inclu|de <GXTy|
|000000d0| 70 65 73 2e 68 3e 0d 0d | 0d 0d 0d 0d 2f 2f 2d 2d |pes.h>..|....//--|
|000000e0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000f0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000100| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|00000110| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 0d |--------|-------.|
|00000120| 2f 2f 20 50 72 6f 74 6f | 74 79 70 65 73 3a 0d 0d |// Proto|types:..|
|00000130| 64 6f 75 62 6c 65 20 47 | 65 74 43 75 72 76 65 4c |double G|etCurveL|
|00000140| 65 6e 67 74 68 28 67 78 | 43 75 72 76 65 20 2a 74 |ength(gx|Curve *t|
|00000150| 68 65 43 75 72 76 65 29 | 3b 0d 64 6f 75 62 6c 65 |heCurve)|;.double|
|00000160| 20 47 65 74 4c 69 6e 65 | 4c 65 6e 67 74 68 28 67 | GetLine|Length(g|
|00000170| 78 4c 69 6e 65 20 2a 74 | 68 65 4c 69 6e 65 29 3b |xLine *t|heLine);|
|00000180| 0d 76 6f 69 64 20 20 43 | 75 72 76 65 4c 65 6e 67 |.void C|urveLeng|
|00000190| 74 68 54 6f 50 6f 69 6e | 74 28 64 6f 75 62 6c 65 |thToPoin|t(double|
|000001a0| 20 74 68 65 4c 65 6e 67 | 74 68 2c 20 67 78 43 75 | theLeng|th, gxCu|
|000001b0| 72 76 65 20 2a 74 68 65 | 43 75 72 76 65 2c 20 67 |rve *the|Curve, g|
|000001c0| 78 50 6f 69 6e 74 20 2a | 74 68 65 50 6f 69 6e 74 |xPoint *|thePoint|
|000001d0| 2c 20 67 78 50 6f 69 6e | 74 20 2a 74 68 65 54 61 |, gxPoin|t *theTa|
|000001e0| 6e 67 65 6e 74 29 3b 0d | 76 6f 69 64 20 20 4c 69 |ngent);.|void Li|
|000001f0| 6e 65 4c 65 6e 67 74 68 | 54 6f 50 6f 69 6e 74 28 |neLength|ToPoint(|
|00000200| 64 6f 75 62 6c 65 20 74 | 68 65 4c 65 6e 67 74 68 |double t|heLength|
|00000210| 2c 20 67 78 4c 69 6e 65 | 20 2a 74 68 65 4c 69 6e |, gxLine| *theLin|
|00000220| 65 2c 20 67 78 50 6f 69 | 6e 74 20 2a 74 68 65 50 |e, gxPoi|nt *theP|
|00000230| 6f 69 6e 74 2c 20 67 78 | 50 6f 69 6e 74 20 2a 74 |oint, gx|Point *t|
|00000240| 68 65 54 61 6e 67 65 6e | 74 20 29 3b 0d 76 6f 69 |heTangen|t );.voi|
|00000250| 64 20 44 65 74 65 72 6d | 69 6e 65 53 75 62 43 75 |d Determ|ineSubCu|
|00000260| 72 76 65 28 67 78 43 75 | 72 76 65 20 2a 74 68 65 |rve(gxCu|rve *the|
|00000270| 43 75 72 76 65 2c 20 64 | 6f 75 62 6c 65 20 61 2c |Curve, d|ouble a,|
|00000280| 20 64 6f 75 62 6c 65 20 | 62 2c 20 67 78 43 75 72 | double |b, gxCur|
|00000290| 76 65 20 2a 73 75 62 43 | 75 72 76 65 29 3b 0d 76 |ve *subC|urve);.v|
|000002a0| 6f 69 64 20 44 65 74 65 | 72 6d 69 6e 65 53 75 62 |oid Dete|rmineSub|
|000002b0| 4c 69 6e 65 28 67 78 4c | 69 6e 65 20 2a 74 68 65 |Line(gxL|ine *the|
|000002c0| 4c 69 6e 65 2c 20 64 6f | 75 62 6c 65 20 61 2c 20 |Line, do|uble a, |
|000002d0| 64 6f 75 62 6c 65 20 62 | 2c 20 67 78 4c 69 6e 65 |double b|, gxLine|
|000002e0| 20 2a 73 75 62 4c 69 6e | 65 29 3b 0d 00 00 00 00 | *subLin|e);.....|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00000310| 2c a0 e2 52 ac a0 e2 20 | 6c a0 da 22 50 23 80 1c |,..R... |l.."P#..|
|00000320| 00 52 43 b6 6a 00 0a 65 | b8 60 00 02 ac 20 45 22 |.RC.j..e|.`... E"|
|00000330| 0f 43 6f 6d 70 75 74 65 | 4c 65 6e 67 74 68 2e 68 |.Compute|Length.h|
|00000340| 02 00 00 00 54 45 58 54 | 43 57 49 45 01 00 ff ff |....TEXT|CWIE....|
|00000350| 00 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 ad 99 c9 26 00 00 | 02 6c 00 00 01 9a 68 00 |.....&..|.l....h.|
|00000380| 1c 48 68 00 0a 3f 3c 00 | 0c 4e ba f5 8a 4f ef 00 |.Hh..?<.|.N...O..|
|00000390| 0a 60 00 02 44 20 32 36 | 0c 43 f3 08 fe 41 ee ff |.`..D 26|.C...A..|
|000003a0| fa 72 02 20 08 4a 81 67 | 06 10 d9 53 81 66 fa 30 |.r. .J.g|...S.f.0|
|000003b0| 2e ff fa 02 40 ff c0 00 | 40 00 3a 3d 40 ff fa 20 |....@...|@.:=@.. |
|000003c0| 32 36 0c 41 f3 08 fe 43 | ee ff fa 72 02 20 08 4a |26.A...C|...r. .J|
|000003d0| 81 67 06 10 d9 53 81 66 | fa 20 32 36 0c 41 f3 08 |.g...S.f|. 26.A..|
|000003e0| 00 43 ee ff fe 72 02 20 | 08 4a 81 67 06 10 d9 53 |.C...r. |.J.g...S|
|000003f0| 81 66 fa 52 43 b6 6a 00 | 0a 65 00 ff 56 60 00 01 |.f.RC.j.|.e..V`..|
|00000400| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000410| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000420| 00 00 00 00 00 00 00 03 | 00 04 00 6a 00 09 01 d0 |........|...j....|
|00000430| 02 68 00 6a 00 09 01 d0 | 02 68 ae 68 82 05 00 00 |.h.j....|.h.h....|
|00000440| 01 80 00 00 01 ca 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00000450| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00000460| 00 00 00 46 01 9d b0 c4 | 23 fe 00 00 00 1c 00 46 |...F....|#......F|
|00000470| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00000480| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00000490| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000004a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000004f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+